package cn.zjj.product.domain;

import cn.zjj.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends BaseDomain {
    private String name;//服务名
    private BigDecimal costprice;//成本价
    private BigDecimal saleprice;//售价
    private String resources;   //图片地址
    private Long salecount; //销售量
    private Long state=0L; //默认下架
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date offsaletime; //上架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date onsaletime;   //下架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date createtime=new Date();

    private ProductDetail productDetail;
}
